package com.qianji.service.impl;

import com.qianji.mapper.UserMapper;
import com.qianji.pojo.UserDto;
import com.qianji.service.UserService;
import com.qianji.vo.UserUpdateVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * Created by 阳家桂 on 2021/3/12 15:40
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public Integer updateUser(UserUpdateVO userUpdateVO) {
        userUpdateVO.setUpdateTime(new Date());
        return userMapper.updateUser(userUpdateVO);
    }

    @Override
    public List<UserDto> findUser(UserDto userDto) {
        return userMapper.findUser(userDto);
    }
}
